<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动布局测试1</title>
  <style>

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    li {
      list-style: none;
    }

    .product {
        width: 1240px;
        height: 628px;
        background-color: #ffbf57;
        margin: 100px auto;
    }

    .product .left {
        width: 234px;
        height: 628px;
        background-color: #ab00ff;
        float: left;
    }

    .product .right {
        width: 978px;
        height: 628px;
        background-color: #ff3939;
        float: right;
    }
    .product .right li {
        margin-right: 14px;
        float: left;
        width: 234px;
        height: 300px;
        background-color: #0537f9;
    }
    .product .right li:nth-child(4n) {
        margin-right: 0;
    }
    .product .right li:nth-child(n-5) {
        margin-bottom: 28px;
    }




  </style>
</head>
<body>

<div class="product">
    <div class="left"></div>
    <div class="right">
        <ul>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</div>

</body>
</html>